package Test_1028;

import Test_1027.CardDemo;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 * Dare: 2024-10-28
 * Time: 23:26
 */
public class CardFunctions {
    //洗牌
    //从后往前与随机一个下标进行交换，直到交换到第一张牌为止
    public void cardClear(){
        List<Card> cardList =new ArrayList<>();
        //生成一个随机下标
        Random random=new Random();
        for (int i =cardList.size(); i > 0 ; i--) {

        }
        int index=random.nextInt();


    }
}
